package edu.sctu.practice.class02.yangyuran.test19;

/**
 * Created by Administrator on 2015/10/15.
 */
public class Rectangular extends Graphical {
    public double area() {

        double area;
        length = 2.0;
        width = 3.0;
        return area = length * width;
    }


    public static void main(String[] args) {

        Rectangular rectangular = new Rectangular();
        double i = rectangular.area();
        System.out.println("矩形面积为：" + i);
    }
}
